package com.yang;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yang.mapper.UserMapper;
import com.yang.pojo.User;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.List;

/**
 * Hello world!
 *
 */
@MapperScan(basePackages = "com.yang.mapper")
@SpringBootApplication
public class App {
    /*
        mybatis-plus的使用步骤：
               1）导入依赖
               2）在配置文件添加配置
               3）给实体类指定对应的表等
               3）mapper层继承BaseMapper<Java实体类>
               4）service层接口继承IService
                       实现类实现ServiceImpl<指定对应的mapper,Java实体类>
               5）正常使用 ......
     */
    public static void main( String[] args ) {
        ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
    }
}
